package fr.bruno.tutos.references.java8.defendermethod;

import junit.framework.Assert;

import org.junit.Test;

public class SimpleDefenderTest {
    @Test
    public void defender() {
        final Reader reader = new ReaderImpl("Java 8 - Lambda Expressions");
 
        Assert.assertEquals('J', reader.next());
        Assert.assertTrue(reader.hasNext());
        reader.skip(10);
        Assert.assertEquals('m', reader.next());
    }
}